package com.haogu.utils;

import java.util.Random;

public class RandomUtils {
    public static String randomNumber(int size){
        Random random = new Random();
        String ron = "1234567890";
        String randomNumber = "";
        for (int i = 0; i < 4; i++) {
            int index = random.nextInt(10);
            char charAt = ron.charAt(index);
            randomNumber += charAt;
        }
        return randomNumber;
    }
}
